import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '银联支付参数名称',
    dataIndex: 'yinlianPayName',
    width: 200,
  },
  {
    title: 'appId',
    dataIndex: 'appId',
    width: 200,
  },
  {
    title: 'appKey',
    dataIndex: 'appKey',
    width: 200,
  },
  {
    title: '商户号',
    dataIndex: 'mid',
    width: 200,
  },
  {
    title: '终端号',
    dataIndex: 'tid',
    width: 200,
  },
  {
    title: '来源编号',
    dataIndex: 'msgSrcId',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'yinlianPayName',
    label: '参数名称',
    component: 'Input',
    colProps: { span: 4 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '银联参数Id',
    field: 'yinlianPayparamId',
    component: 'Input',
    required: false,
    show: false,
  },
  {
    label: '参数名称',
    field: 'yinlianPayName',
    component: 'Input',
    required: true,
  },
  {
    label: 'appId',
    field: 'appId',
    component: 'Input',
    required: true,
  },
  {
    label: 'appKey',
    field: 'appKey',
    component: 'Input',
    required: true,
  },
  {
    label: '商户号',
    field: 'mid',
    component: 'Input',
    required: true,
  },
  {
    label: '终端号',
    field: 'tid',
    component: 'Input',
    required: true,
  },
  {
    label: '来源编号',
    field: 'msgSrcId',
    component: 'Input',
    required: true,
  },
  {
    label: 'md5密钥',
    field: 'md5Secret',
    component: 'Input',
    required: true,
  },
  {
    label: '请求地址',
    field: 'openApiAddress',
    component: 'Input',
    required: true,
  },
];
